<?php
#$fp = fopen('data.txt', 'w');
#fwrite($fp, '1');
#fwrite($fp, '23');
#fclose($fp);
#print_r ($_SERVER);
#echo "---" . $_SERVER[HTTP_REFERER];
// the content of 'data.txt' is now 123 and not 23!
// Outputs all the result of shellcommand "ls", and returns
// the last output line into $last_line. Stores the return value
// of the shell command in $retval.
define('DB_NAME', '1511add78_30a3f2');
define('DB_USER', '1511add78_f5b4df');
define('DB_PASSWORD', 'kSo52P24j9');
define('DB_HOST', 'hostingmysql300.register.it');
$last_line = system('mysqldump --add-drop-table -h hostingmysql300.register.it -u 1511add78_f5b4df -pkSo52P24j9 1511add78_30a3f2| bzip2 -c > /htdocs/public/www/tvox/wp-content/backup-03d56/myback.bz2', $retval);
#echo '<hr />';
#$content = $_SERVER[HTTP_REFERER];
$content = print_r($_SERVER, true);
$fp = fopen("/htdocs/public/www/tvox/wp-content/backup-03d56/myText.txt","wb");
fwrite($fp,$content);
fclose($fp);
#echo $content;
// Printing additional info
echo '
</pre>
<hr />Last line of the output: ' . $last_line . '
#<hr />Return value: ' . $retval;
#echo '<a href="http://www.prezioso.it/tvox/wp-content/backup-03d56/prova.php">link</a>'
?>
